package org.framework.test.service;

import org.framework.test.entity.Producer;
import org.framework.test.feign.ConsumerFeignClient;
import org.framework.test.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * <p>Title:ConsumerService.java</p >
 * <p>Description: </p >
 * <p>Copyright: Copyright(c)2020</p >
 * <p>Date:2021/5/29 15:03</p >
 *
 * @author quzp
 * @version 1.0
 */
@Service
public class ConsumerService {

    @Autowired
    private ConsumerFeignClient feignClient;

    /**
     * 通过feign调用的测试接口
     * @return
     */
    public CommonResult<Producer> feignMethod() {
        return feignClient.feignMethod();
    }
}